package com.lanzhou.yuanfen.diary.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.lanzhou.yuanfen.config.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author lcllge
 * @since 2020-07-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("archive")
public class Archive extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "archive_key", type = IdType.AUTO)
    private Long archiveKey;

    /**
     * 父Id
     */
    private Long fatherNode;

    /**
     * 类目名称
     */
    private String name;

    /**
     * 类目Icon
     */
    private String icon;


    @TableField(exist = false)
    private Archive parentNode;

}
